package com.imau.student.mapper;

import com.imau.student.bean.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface StudentMapper {
    /**增加*/
    public int addStudent(Student student);

    /**删除*/
    @Delete("delete  from  javaee2025.tb_student where id= #{id}")
    public int deleteById(int id);

    /**修改*/
    public int updateStudent(Student student);

    /**查询*/
    @Select("SELECT * from javaee2025.tb_student ")
    public Student selectById(int id);

}
